package com.echartsdata.Entityimp;

import com.alibaba.fastjson2.JSONObject;
import com.echartsdata.Mapper.ProblemMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @ Author: 凉笙墨染
 * @ CreateTime: 2024-09-25
 * 问题占比
 */

@Component
public class ProblemMapperimp {
    @Resource
    private ProblemMapper problemMapper;
    public String get_problem(){
        System.out.println("看看问题占比数据返回的什么数据"+problemMapper.getProblemList());
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("data", problemMapper.getProblemList());
        return jsonObject.toString();
    }
}
